package com.llh.mapper;

import com.llh.bean.MiddleData;
import com.llh.bean.StockBase;
import com.llh.controller.excel.excelPojo.BaseExcelOut;
import com.llh.controller.processdata.computVo.PrimaryKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StockBaseMapper {
    int deleteByPrimaryKey(Integer no);

    int insert(StockBase record);

    int insertSelective(StockBase record);

    StockBase selectByPrimaryKey(Integer no);

    int updateByPrimaryKeySelective(StockBase record);

    int updateByPrimaryKey(StockBase record);
    //    自定义

    /**
     * 批量插入数据
     * @param stocks
     */
    void insertBatch(@Param("stocks") List<StockBase> stocks);
    List<StockBase> selectAll();
    List<MiddleData> selectMiddle(@Param("middleDataList") List<MiddleData> middleDataList);
    List<BaseExcelOut> findallLimit(@Param("offset") Integer offset, @Param("limit")Integer limit);
    List<PrimaryKey> findAllKey();
}